<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>删除节点</title>
</head>
<body>
<div id="container" >
    <div id="other" style="" name="" class="" title="">
        杂项
    </div>
    <ul id="lunch">
        <li>麻婆豆腐</li>
        <li>啤酒鸭</li>
        <li>辣子鸡</li>
        <li>麻辣香锅</li>
        <li>拌粉</li>
    </ul>
</div>
<button type="button" onclick="remove()">点击我，进行移除节点</button>
<script type="text/javascript">
    function remove(){
        let lunch = document.querySelector("#lunch") ;
        lunch.removeChild( lunch.children[0] ) ;
        lunch.removeChild( lunch.children[1] ) ;
    }
</script>
</body>
</html>